package com.jeecg.jing.entity.excel;

import com.jeecg.jing.entity.ZSaleEntity;
import com.jeecg.jing.entity.ZSalemanEntity;
import com.jeecg.jing.entity.ZTakeinWayEntity;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**   
 * @Title: Entity
 * @Description: 客户信息
 * @author onlineGenerator
 * @date 2018-11-01 09:53:32
 * @version V1.0   
 *
 */
@SuppressWarnings("serial")
public class ZTakeinEntity_ implements java.io.Serializable {
	/**合同编号*/
	@Excel(name="合同编号",width=15)
	private String contract;
	/**收据编号*/
	@Excel(name="收据编号",width=15)
	private String receipt;
	/**销售姓名*/
	@Excel(name="销售姓名",width=15)
	private String saleName;
	/**客户姓名*/
	@Excel(name="客户姓名",width=15)
	private String customName;
	/**身份证号*/
	@Excel(name="身份证号",width=15)
	private String idCard;
	/**入金时间*/
	@Excel(name="入金时间",width=15,format = "yyyy/MM/dd")
	private Date takeinTime;
	/**金额*/
	@Excel(name="金额",width=15, type=4)
	private BigDecimal amount;
	/**期限*/
	@Excel(name="期限",width=15, exportConvert=true)
	private String timeLimit;
	/**利率*/
	@Excel(name="利率",width=15, type=4)
	private BigDecimal rate;
	/**电话*/
	@Excel(name="电话",width=15)
	private String phone;
	/**汇款账号*/
	@Excel(name="汇款账号",width=15)
	private String bankAccount;
	/**到期时间*/
	@Excel(name="到期时间")
	private String endTime_;
	/**备注*/
	@Excel(name="备注",width=15)
	private String comment;
	// 到期日，即到期时间的Day字段
	@Excel(name="到期日",width=15)
	private String endDay;

	public String convertisTimeLimit() {
		return StringUtil.isEmpty(timeLimit) ? "活期" : (timeLimit+"个月");
	}

	public String getContract() {
		return contract;
	}

	public void setContract(String contract) {
		this.contract = contract;
	}

	public String getReceipt() {
		return receipt;
	}

	public void setReceipt(String receipt) {
		this.receipt = receipt;
	}

	public String getSaleName() {
		return saleName;
	}

	public void setSaleName(String saleName) {
		this.saleName = saleName;
	}

	public String getCustomName() {
		return customName;
	}

	public void setCustomName(String customName) {
		this.customName = customName;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public Date getTakeinTime() {
		return takeinTime;
	}

	public void setTakeinTime(Date takeinTime) {
		this.takeinTime = takeinTime;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getTimeLimit() {
		return timeLimit;
	}

	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}

	public BigDecimal getRate() {
		return rate;
	}

	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getEndTime_() {
		return endTime_;
	}

	public void setEndTime_(String endTime_) {
		this.endTime_ = endTime_;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getEndDay() {
		return endDay;
	}

	public void setEndDay(String endDay) {
		this.endDay = endDay;
	}
}